package com.ghh.i18n;

import java.util.Locale;
import java.util.ResourceBundle;

import junit.framework.TestCase;

import org.junit.Test;

/**
 * @author hgu
 * 
 */
public class I18nTest extends TestCase {

	@Test
	public void testGetResource() {
		System.out.println(Locale.getDefault());
		Locale locale = new Locale("zh", "CN");
		ResourceBundle messages = ResourceBundle.getBundle("com.ghh.i18n.StringResource", locale);
		System.out.println(messages.getString("name"));
	}
}
